package Bean;

import com.alibaba.fastjson.JSONObject;

import java.text.SimpleDateFormat;
import java.util.List;

public class BeanClass {
    int class_id;
    String class_name;
    boolean class_state;
    String teacher_id;
    int place_id;
    double class_price;
    BeanPlace place;
    BeanTeacher teacher;
    String class_span;
    private List<BeanCourse> courses;
    int num;
    int type;
    String class_url;

    public String getClass_span() {
        return class_span;
    }

    public void setClass_span(String class_span) {
        this.class_span = class_span;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getClass_url() {
        return class_url;
    }

    public void setClass_url(String class_url) {
        this.class_url = class_url;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public int getPlace_id() {
        return place_id;
    }

    public void setPlace_id(int place_id) {
        this.place_id = place_id;
    }

    public double getClass_price() {
        return class_price;
    }

    public void setClass_price(double class_price) {
        this.class_price = class_price;
    }

    public BeanPlace getPlace() {
        return place;
    }

    public void setPlace(BeanPlace place) {
        this.place = place;
    }

    public BeanTeacher getTeacher() {
        return teacher;
    }

    public void setTeacher(BeanTeacher teacher) {
        this.teacher = teacher;
    }

    public List<BeanCourse> getCourses() {
        return courses;
    }

    public void setCourses(List<BeanCourse> courses) {
        this.courses = courses;
    }

    public int getClass_id() {
        return class_id;
    }

    public void setClass_id(int class_id) {
        this.class_id = class_id;
    }

    public boolean isClass_state() {
        return class_state;
    }

    public void setClass_state(boolean class_state) {
        this.class_state = class_state;
    }

    public String getTeacher_id() {
        return teacher_id;
    }

    public void setTeacher_id(String teacher_id) {
        this.teacher_id = teacher_id;
    }
    public JSONObject toJson() {
        JSONObject j=new JSONObject();
        j.put("class_id", class_id);
        j.put("class_name", class_name);
        j.put("class_state", class_state);
        j.put("place", place);
        j.put("teacher", teacher);
        j.put("class_price", class_price);
        j.put("courses", courses);
        j.put("class_num", num);
        j.put("class_url", class_url);
        j.put("class_span", class_span);
        return j;
    }
}
